import React from 'react'
import {useNavigate} from 'react-router-dom'
export default function Register() {
  const navigate=useNavigate()
  const go=(e)=>{
    e.preventDefault()
    navigate('/login')
  }
  return (
    <div>
        用户注册
        已经有账号了，进行<a href='#' onClick={go}>登录</a>
    </div>
  )
}
